package com.ygqh.baby.po;

import com.ygqh.baby.ao.DataStatus;

import java.math.BigDecimal;
import java.util.Date;

public class YgPrepayBookRecord {
	private Long id;

	private Long recordCode;

	private Long userId;

	private Long productBookId;

	private Long orderId;

	private RecordStatus recordStatus;

	private BigDecimal bookPrice;

	private Long supplierId;

	private Long skuId;

	private String skuCode;

	private String productName;

	private String shortName;

	private BigDecimal salePrice;

	private String size;

	private String imageUrl;

	private Long quantity;

	private BigDecimal deductiblePrice;

	private BigDecimal tailPrice;

	private Date createTime;

	private Date bookPaidTime;

	private Date tailPaidTime;

	private Date cancelTime;

	private Date refundTime;

	private BigDecimal shareRate;

	private BigDecimal foreverRate;

	private DataStatus status;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getRecordCode() {
		return recordCode;
	}

	public void setRecordCode(Long recordCode) {
		this.recordCode = recordCode;
	}

	public Long getProductBookId() {
		return productBookId;
	}

	public void setProductBookId(Long productBookId) {
		this.productBookId = productBookId;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public RecordStatus getRecordStatus() {
		return recordStatus;
	}

	public void setRecordStatus(RecordStatus recordStatus) {
		this.recordStatus = recordStatus;
	}

	public BigDecimal getBookPrice() {
		return bookPrice;
	}

	public void setBookPrice(BigDecimal bookPrice) {
		this.bookPrice = bookPrice;
	}

	public Long getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Long supplierId) {
		this.supplierId = supplierId;
	}

	public Long getSkuId() {
		return skuId;
	}

	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}

	public String getSkuCode() {
		return skuCode;
	}

	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode == null ? null : skuCode.trim();
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName == null ? null : productName.trim();
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName == null ? null : shortName.trim();
	}

	public BigDecimal getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(BigDecimal salePrice) {
		this.salePrice = salePrice;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size == null ? null : size.trim();
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl == null ? null : imageUrl.trim();
	}

	public Long getQuantity() {
		return quantity;
	}

	public void setQuantity(Long quantity) {
		this.quantity = quantity;
	}

	public BigDecimal getTailPrice() {
		return tailPrice;
	}

	public void setTailPrice(BigDecimal tailPrice) {
		this.tailPrice = tailPrice;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getBookPaidTime() {
		return bookPaidTime;
	}

	public void setBookPaidTime(Date bookPaidTime) {
		this.bookPaidTime = bookPaidTime;
	}

	public Date getTailPaidTime() {
		return tailPaidTime;
	}

	public void setTailPaidTime(Date tailPaidTime) {
		this.tailPaidTime = tailPaidTime;
	}

	public Date getCancelTime() {
		return cancelTime;
	}

	public void setCancelTime(Date cancelTime) {
		this.cancelTime = cancelTime;
	}

	public DataStatus getStatus() {
		return status;
	}

	public void setStatus(DataStatus status) {
		this.status = status;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public BigDecimal getDeductiblePrice() {
		return deductiblePrice;
	}

	public void setDeductiblePrice(BigDecimal deductiblePrice) {
		this.deductiblePrice = deductiblePrice;
	}

	public BigDecimal getShareRate() {
		return shareRate;
	}

	public void setShareRate(BigDecimal shareRate) {
		this.shareRate = shareRate;
	}

	public BigDecimal getForeverRate() {
		return foreverRate;
	}

	public void setForeverRate(BigDecimal foreverRate) {
		this.foreverRate = foreverRate;
	}

	public Date getRefundTime() {
		return refundTime;
	}

	public void setRefundTime(Date refundTime) {
		this.refundTime = refundTime;
	}

	public enum RecordStatus {

		WaitingPayDepost("待支付定金"), WaitingPayFinal("待支付尾款"), Complete("已完成"), Cancel("已取消"), RefundSuccess("已退款");

		private String title;

		RecordStatus(String tilte) {
			this.title = title;
		}

		public String getTitle() {
			return title;
		}

		public void setTitle(String title) {
			this.title = title;
		}
	}

	@Override
	public String toString() {
		return "YgPrepayBookRecord{" +
				"id=" + id +
				", recordCode=" + recordCode +
				", userId=" + userId +
				", productBookId=" + productBookId +
				", orderId=" + orderId +
				", recordStatus=" + recordStatus +
				", bookPrice=" + bookPrice +
				", supplierId=" + supplierId +
				", skuId=" + skuId +
				", skuCode='" + skuCode + '\'' +
				", productName='" + productName + '\'' +
				", shortName='" + shortName + '\'' +
				", salePrice=" + salePrice +
				", size='" + size + '\'' +
				", imageUrl='" + imageUrl + '\'' +
				", quantity=" + quantity +
				", deductiblePrice=" + deductiblePrice +
				", tailPrice=" + tailPrice +
				", createTime=" + createTime +
				", bookPaidTime=" + bookPaidTime +
				", tailPaidTime=" + tailPaidTime +
				", cancelTime=" + cancelTime +
				", refundTime=" + refundTime +
				", shareRate=" + shareRate +
				", foreverRate=" + foreverRate +
				", status=" + status +
				'}';
	}
}